package com.syg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author syg
 * @EnableAspectJAutoProxy 开启AOP
 * @EnableTransactionManagement 开启事务
 * @date 2021年12月1日10:18:13
 */
@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy=true)
@EnableTransactionManagement
@ComponentScan(basePackages = {"problem.solution.*", "com.syg.*"})
public class AopBoot {
    public static void main(String[] args) {
        SpringApplication.run(AopBoot.class, args);
    }
}
